import request from '/src/axios.js';

export const logApi = {
  getUsualList: (current, size) => request({
    url: '/api/blade-log/usual/list',
    method: 'get',
    params: {
      current,
      size
    }
  }),
  getApiList: (current, size) => request({
    url: '/api/blade-log/api/list',
    method: 'get',
    params: {
      current,
      size
    }
  }),
  getErrorList: (current, size) => request({
    url: '/api/blade-log/error/list',
    method: 'get',
    params: {
      current,
      size
    }
  }),
  getUsualLogs: (id) => request({
    url: '/api/blade-log/usual/detail',
    method: 'get',
    params: {
      id,
    }
  }),
  getApiLogs: (id) => request({
    url: '/api/blade-log/api/detail',
    method: 'get',
    params: {
      id,
    }
  }),
  getErrorLogs: (id) => request({
    url: '/api/blade-log/error/detail',
    method: 'get',
    params: {
      id,
    }
  })
}
